<?php

class DependenteDao extends Dao {

    public function injectDependencies() {

    }

    public function update($Dependent, &$tMysqli) {
        $StSql = TQuery::getSqlUpdateDependent($Dependent);
        $tMysqli->exec($StSql);
        return $tMysqli->lastQueryReturn();
    }

    public function delete($IDDependent, &$tMysqli) {
        $StSql = TQuery::getSqlDeleteDependent($IDDependent);
        $tMysqli->escape($IDDependent);
        $tMysqli->exec($StSql);
        return $tMysqli->lastQueryReturn();
    }

    public function save($Dependent, &$tMysqli) {
        $StSql = TQuery::getSqlInsertDependent($Dependent);
        $tMysqli->exec($StSql);
        return $tMysqli->lastQueryReturn();
    }

}

?>
